package com.credithc.signature.job.client;

import com.credithc.signature.job.ro.EmailRo;
import com.credithc.signature.job.ro.WxRo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * 调用企业微信发送邮件client
 */
@FeignClient(name = "qyWxClient", url = "${qywx.url}")
public interface QyWxClient {

    @PostMapping(value = "email")
    String sendEmail(@RequestBody EmailRo ro);

    @PostMapping(value = "qywxsend/text")
    String sendWxText(@RequestBody WxRo ro);

    @PostMapping(value = "qywxsend/textcard")
    String sendWxCard(@RequestBody WxRo ro);
}

